<?php /* Smarty version 2.6.26, created on 2013-03-21 10:08:52
         compiled from msearch_shop.html */ ?>

<div id="dialogsearpanel">
<form name = "fmsea">
<input type="text" name="name" value="<?php echo $this->_tpl_vars['nameval']; ?>
" class="text" />&nbsp;<button type="button" class="btn_filter" id="idbtn_filter" >絞込</button>
</form>
</div>

<div id = "diologlist">
	<div class="serach_pageing">
	 <p align="left" ><?php echo $this->_tpl_vars['pageing']; ?>
</p>
	 </div>
	<div class="serach_result">
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
		&nbsp;<a href="javascript:setSS('<?php echo $this->_tpl_vars['v']['shop_cd']; ?>
' ,'<?php echo $this->_tpl_vars['v']['shop_name']; ?>
')"><?php echo $this->_tpl_vars['v']['shop_cd']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['v']['shop_name']; ?>
</a><br>
		<?php endforeach; endif; unset($_from); ?>
	</div>
</div>
<script type="text/javascript">
$('.btn_filter').click(function(){
	var urlPara = makeSearchURL('<?php echo $this->_tpl_vars['paraname']; ?>
', document.fmsea.name.value); 
	$("#dialog").load(urlPara).dialog({
		modal:true
		}); 
	//$('#dialog').dialog('open');
});
function toPageS(thepage) {
	var urlPara = makeSearchURL('<?php echo $this->_tpl_vars['paraname']; ?>
', document.fmsea.name.value); 
	urlPara = urlPara + "&page=" + thepage;
	
	$("#dialog").load(urlPara).dialog({
		modal:true
	}); 
}
$('input').keypress(function(ev) {
	if ((ev.which && ev.which === 13) || (ev.keyCode && ev.keyCode === 13)) {
		$("#idbtn_filter").trigger("click") 
		return false;
	} else {
		return true;
	}
});
document.fmsea.name.focus();
</script>
	